package com.crm.service.sys.permissionManagement;

import com.crm.model.entity.sys.permissionManagement.SysCompanyPermission;

import java.util.List;

/**
 * @Author yincuimei
 * @Date 2020/12/4 15:20
 */
public interface SysCompanyPermissionDbService {

    /**
     * 批量添加公司-(菜单-权限组关联)关联表数据
     * @param sysCompanyPermissionList
     * @return
     */
    Boolean insertSysCompanyPermissionBatch(List<SysCompanyPermission> sysCompanyPermissionList);
    /**
     * 批量删除公司-权限关联
     * @param menuPermissionIds
     * @return
     */
    int batchDelSysCompanyPermissionByMPIds(List<String> menuPermissionIds);

    /**
     * 根据菜单-权限组关联表主键集合查询公司-权限关联表
     * @param menuPermissionIdList
     * @return
     */
    List<SysCompanyPermission> selectSysCompanyPermissionList(List<String> menuPermissionIdList);
}
